Task References

On this page:

valueof (string)

Purpose

The stringValueOf task is used to return the primitive value of a string object as a string data type. Primitive value is essentially data that is stored directly in the location the variable accesses.

Potential Use Case

Rarely will this method be used in data manipulation; however, it is useful when you need to convert different types of values into a string.

Properties

Input and output parameters are shown below.

Incoming Type Description
str String Required. The string to get the value of.


Outgoing Type Description
string String A string representing the primitive value of a given string object.

Example

In this IAP example, the str variable is listed as Hello World.

valueof

The string is validated and the expected result will be "Hello World" contained within double quotation marks.

valueofresult